package com.ijunfu.spring.primary._01_primary_bean.config;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/8 13:39
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
@Configuration
public class MyConfig {

    @Bean
    @Qualifier("author")
    public String author() {
        return "ijunfu";
    }

    @Bean
    @Qualifier("email")
    @Primary
    public String email() {
        return "ijunfu@163.com";
    }
}
